package kom.gui.interfaces.buttons;

import java.awt.Color;
import kom.gfx.Screen;
import kom.gui.interfaces.Button;

public class SimpleButton extends Button {

    public SimpleButton(String label, int x, int y, int tamX, int tamY, String act) {
        this.name = label;
        this.sizeX = tamX;
        this.sizeY = tamY;
        this.telaX = x;
        this.telaY = y;
        this.acao = act;
    }

    @Override
    public void desenhaBotao(Screen screen, int maisX, int maisY) {
        screen.drawRect(telaX + maisX, telaY + maisY, sizeX, sizeY, true, Color.ORANGE);
        screen.drawRect(telaX + maisX, telaY + maisY, sizeX, sizeY, false, Color.BLACK);
        screen.setFont("arial", 0, 9);
        screen.drawText(telaX + maisX + 3, telaY + maisY + 10, name, Color.BLACK);
    }
}
